package Demo01;

import jdk.swing.interop.SwingInterOpUtils;

public class Test {
    public static void main(String[] args) {
        Test test = new Test();
        for (int i = 0; i < 10; i++) {
            test.ThreadABC();
        }
    }
    public void ThreadABC() {
        Thread threadA = new Thread(() -> {
            System.out.print('A');
        });
        Thread threadB = new Thread(() -> {
            System.out.print('B');
        });
        Thread threadC = new Thread(() -> {
            System.out.println('C');
        });

        threadA.run();
        threadB.run();
        threadC.run();
    }
}
